import request from '@/utils/request'

// api地址
const api = {
  list: 'game/list',
 ex_list: 'game/ex_list',
  detail: 'game/detail',
    getResult: 'game/getResult',
    joinMatch: 'game/joinMatch',
}
export const joinMatch = (data) => {
  return request.post(api.joinMatch, { form: data })
}
export function ex_list(param, option) {
  return request.get(api.ex_list, param, option)
}
// 文章列表
export function list(param, option) {
  return request.get(api.list, param, option)
}

// 文章详情
export function detail(articleId) {
  return request.get(api.detail, { articleId })
}
export function getResult(id) {
  return request.get(api.getResult, { id })
}
